export interface IEditCouponData {
  id: number | undefined;
  couponName: string;
  couponType: number;

  fullPrice: string | undefined;
  reducePrice: string | undefined;
  discount: string | undefined;
  discountRule: string;
  maxDiscountPrice: string | undefined;

  useRange: number;
  businessId: number | undefined;
  businessGoodsId: string | undefined;
  businessCategoryId: number | undefined;
    // 领取时间
  receiveStartTime: number | undefined;
  receiveEndTime: number | undefined;
  receiveWeekDay: string | undefined;
  receiveMonth: string | undefined;
  receiveRangeStartTime: string | undefined,
  receiveRangeEndTime: string | undefined,
  // 领取时间限制
  receiveType: number;
  // 使用开始时间
  takeEffectType:number;
  // 使用结束时间
  useType: number;
  useFixEndTime: number | undefined;
  useDayNum: number | undefined;
  useMonthNum: number | undefined;
  couponWarningStatus: number;
  warningNum: string | undefined;
  couponUseDetail: string;
}

/**
 * 优惠券管理行
 */
export interface ICouponManageRow {
  id: number;
  receiveStartTime: number;
  receiveEndTime: number;
  status: 1 | 0
}

/**
 * 优惠券管理数据统计
 */
export interface ICouponStatics {
  receiveNum: number;
  usedNum: number;
  expiredNum: number;
}

/**
 * 优惠券批次管理行数据
 */
export interface ICouponBatchManageRow {
  id: number;
  batchStatus: 1 | 0;
  couponBatchName: string;
  couponName: string;
  verifyStatus: 0 | 1 | 2;
}

/**
 * 新增或编辑优惠券批次数据
 */
export interface IEditCouponBatchData {
  id: number | undefined;

  couponDefineId: number | undefined;
  couponTotalNum: number | undefined;
  // 使用开始时间
  takeEffectType:number;
  // 使用结束时间
  useType: number;
  useFixEndTime: number | undefined;
  useDayNum: number | undefined;
  useMonthNum: number | undefined;
}

export interface IVerifyCouponRow {
  id: number;
  verifyStatus: number;
}

export interface ICouponClaimStatics {
  receiveNum: number;
  usedNum: number;
  expiredNum: number;
}

/**
 * 优惠券审核统计
 */
export interface IVerifyCouponStatics {
  allNum: number;
  verifyPassNum: number;
  verifyRefuseNum: number;
  waitVerifyNum: number;
}

/**
 * 优惠券选择器的表格行
 */
export interface ICouponSelectorRow {
  id: number;
  receiveStartTime: number;
  receiveEndTime: number;
}